// 个人中心-订单相关接口
import { get, post } from "../base/request";

// 线上课程订单
export const getOrderOnline = (page) => get('/api/order/online', { page })

// 线上课程订单详情
export const getOrderOnlineDetail = (order_id) => get('/api/order/online_detail', { order_id })

// 取消线上课程订单
export const postOrderOnlineCancel = (data) => post('/api/order/online_cancel', data)

// 线上课程订单去付款
export const postOrderOnlineTopay = (data) => post('/api/order/online_topay', data)

// 线下课程订单
export const getOrderOffline = (page) => get('/api/order/offline', { page })

// 线下课程订单详情
export const getOrderOfflineDetail = (order_id) => get('/api/order/offline_detail', { order_id })

// 取消线上课程订单
export const postOrderOfflineCancel = (data) => post('/api/order/offline_cancel', data)

// 获取Vip订单列表
export const getVipOrderList = (page) => get('/api/order/vip', { page })